FROM openjdk:17-jdk-slim


ENV APP_NAME="APP001"
ENV VERSION="1.0.0"

RUN mkdir -p /app
WORKDIR /app
EXPOSE 8081
ADD ./busy/target/bailan6-busy.jar bailan6-busy-$VERSION.jar
ADD ./busy/target/bin bin
#ADD ./busy/target/lib lib
#ADD ./busy/target/config config
#ADD ./busy/target/resources resources
RUN chmod +x bin/startup.sh
VOLUME ["/app/config","/app/resource","/app/logs","/app/lib"]
WORKDIR "/app/bin"
CMD ./startup.sh -a $APP_NAME -v $VERSION